package com.hist;

import com.hist.pojo.Person;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @auther Ren Gaoshuai
 * @date 2021-04-06 9:23
 **/
public class Mtest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");

        Person person = context.getBean("person", Person.class);
        person.getCat().show();
        person.getDog().show();

    }
}
